//
// Created by Arikes on 9/21/21.
//

#ifndef DESIGNERMODE_DECORATOR_H
#define DESIGNERMODE_DECORATOR_H

#include "Component.h"
namespace DecoratorMode
{
    class Decorator:public Component
    {
    public:
        Decorator(Component* component):_component(component){

        }

        virtual void operation()
        {
            _component->operation();
        }

    protected:
        Component* _component = nullptr;
    };
}

#endif //DESIGNERMODE_DECORATOR_H
